package 设计模式.l_责任链模式;

/**
 * 为多个对象提供处理请求的机会
 * @author caihe
 * @date 2023/3/13 16:04
 */
public class Test {

    public static void main(String[] args) {
        Request holiday = new Request(RequestType.HOLIDAY, "放假通知");
        Request study = new Request(RequestType.STUDY, "补课通知");
        
        
        MinistryEducation ministryEducation = new MinistryEducation();
        ministryEducation.performRequest(holiday);
        System.out.println();
        ministryEducation.performRequest(study);
        
        
        
    }
    
}
